<template>
	<view class="Select-merchant">
		<view class="merchantBox">
			<view class="merchant_top">
				<view class="searchBox">
					<u-search placeholder="搜索商户" v-model="keyword" :show-action="false"  @search="searchBtn"></u-search>
				</view>
				<!-- <view class="Navigation">
					<view class="NavigationItem" :class="{currentColor:current==index}" v-for="(item,index) in NavItem" @click="selectItem(index)">{{item.name}}</view>
				</view> -->
			</view>
			<view class="merchantList">
				<view class="ProductItem" v-for="(item,index) in list" :key="index" @click="selectStore" :data-index="index">
					<view class="ItemTop">
						<view class="ProductImage" :style="{'background-image':'url('+getImage(item.image_url)+')'}">
							<!-- <image :src="getImage(item.image_url)" mode=""></image> -->
						</view>
						<view class="ProductInfo">
							<view class="ProductNameBox">
								<view class="ProductName">{{item.name}}</view>
								<view class="sales-volume">售{{item.sales_volume_sum}}</view>
							</view>
							<view class="addressBox">
								<view class="address">{{item.industry_name}}</view>
								<view class="addressNum">{{item.juli|numFilter}}km</view>
							</view>

<!--              {"code":200,"message":"请求成功!",
"data":[{"id":37625,"user_id":7,"industry_id":2,
"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1665230167574J5X4s.jpg",
"name":"爱漾皮肤管理中心","week":null,"day_start":null,"day_end":null,"mobile":null,
"address":"湖北省武汉市武昌区","longitude":"114.34302520752","dimension":"30.555002212524",
"province_id":420000,"city_id":420100,"area_id":420106,"business_areas_id":7652,
"detailed_address":"湖北省武汉市武昌区水果湖街道松竹路汉街总部国际A座2007室(楚河汉界地铁站B出口)"
,"collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,
"is_ban":0,"ban_time":null,"create_time":1665231006,"update_time":1665231006,
"delete_time":0,"juli":1065.9599737307,"industry_name":"丽人","shop_package":[]},
{"id":37624,"user_id":1880,"industry_id":8,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1664514908024nGWfE.png",
"name":"十二天星","week":null,"day_start":null,"day_end":null,"mobile":null,
"address":"北京北京市朝阳区","longitude":"116.46","dimension":"39.92",
"province_id":110000,"city_id":110100,"area_id":110105,"business_areas_id":41,
"detailed_address":"北京市朝阳区朝阳门外大街1号","collection_num":0,"is_authentication":1,
"is_opening":3,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1664515020,
"update_time":1664526474,"delete_time":0,"juli":6.0787458828403,"industry_name":"创意体验",
"shop_package":[{"id":38,"shop_id":37624,"shop_package_id":38,"create_time":1664515416,
"update_time":1664524408,"user_id":1880,"name":"星辰","money":"0.10","talent_commission_money":"0.00","user_commission_money":"0.01","title_image":"1664514908024rhFDc.png","content":"{\"startTxt\":\"十二天星龙\",\"richTxt\":[]}","remind":"","sales_volume":4,"stock_num":117,"num":96,"is_specified_time":1,"effective_time":1665100800,"package_title":"[{\"name\":\"星宿\",\"conList\":[]},{\"name\":\"45518\",\"conList\":[{\"name\":\"给个电话\",\"price\":\"1221\"}]}]","online_time":1664524408,"offline_time":0,"limit_time":"{\"str\":\"00:00 - 23:00\",\"val\":[0,23]}","is_holidays":1,"is_rest":1,"personal_num":10,"is_upper_frame":1,"is_appointment":1,"use_num":20,"is_discount_share":1,"is_ban":0,"delete_time":0}]},{"id":37623,"user_id":1881,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/16644212385863MTXC.png","name":"奋斗会撒娇和","week":"1,2,3,5,6,7","day_start":"00:00-14:00","day_end":"00:00-23:00","mobile":"15690469916","address":"北京北京市朝阳区","longitude":"116.397827","dimension":"39.90374","province_id":110000,"city_id":110100,"area_id":110105,"business_areas_id":2,"detailed_address":"北京市东城区东长安街","collection_num":0,"is_authentication":1,"is_opening":1,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1664357289,"update_time":1664421643,"delete_time":0,"juli":1.6919751898361,"industry_name":"休闲娱乐","shop_package":[{"id":37,"shop_id":37623,"shop_package_id":37,"create_time":1664441849,"update_time":1664536811,"user_id":1881,"name":"北京顺丰邮递","money":"0.01","talent_commission_money":"0.00","user_commission_money":"0.01","title_image":"1664443149488hdenW.png","content":"{}","remind":"分为嘎达热个","sales_volume":21,"stock_num":0,"num":-11,"is_specified_time":0,"effective_time":1036800,"package_title":"[{\"name\":\"23441\",\"conList\":[{\"name\":\"432\",\"price\":\"324\"}]}]","online_time":1665974282,"offline_time":0,"limit_time":"{\"str\":\"00:00 - 18:00\",\"val\":[0,18]}","is_holidays":1,"is_rest":1,"personal_num":0,"is_upper_frame":1,"is_appointment":1,"use_num":0,"is_discount_share":1,"is_ban":0,"delete_time":0},{"id":36,"shop_id":37623,"shop_package_id":36,"create_time":1664440593,"update_time":1664536848,"user_id":1881,"name":"团单number1","money":"1.00","talent_commission_money":"0.00","user_commission_money":"0.05","title_image":"1664439510192DW4mr.png","content":"{\"startTxt\":\"\",\"richTxt\":[{\"img\":\"1664439510192NAMyD.png\",\"txt\":\"\"}]}","remind":"干啥的","sales_volume":8,"stock_num":2,"num":2,"is_specified_time":0,"effective_time":432000,"package_title":"[{\"name\":\"色\",\"conList\":[{\"name\":\" 输入发\",\"price\":\"111\"}]}]","online_time":1665649948,"offline_time":0,"limit_time":"0","is_holidays":1,"is_rest":1,"personal_num":0,"is_upper_frame":1,"is_appointment":1,"use_num":0,"is_discount_share":1,"is_ban":0,"delete_time":0}]},{"id":37622,"user_id":1881,"industry_id":8,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1664355780776Hz3Y5.png","name":"张某人的时光杂货铺","week":"1,2,3,4,5,6,7","day_start":"00:00-00:03","day_end":"00:00-00:13","mobile":null,"address":"北京北京市朝阳区","longitude":"116.46","dimension":"39.92","province_id":140000,"city_id":140100,"area_id":140105,"business_areas_id":994,"detailed_address":"北京市朝阳区朝阳门外大街1号","collection_num":0,"is_authentication":1,"is_opening":3,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1664354659,"update_time":1664418731,"delete_time":0,"juli":6.0787458828403,"industry_name":"创意体验","shop_package":[]},{"id":37593,"user_id":1862,"industry_id":1,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1661925881113XdcbF.jpg","name":"北京烤鸭通州分店","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"北京北京市通州区","longitude":"116.665634","dimension":"39.888012","province_id":110000,"city_id":110100,"area_id":110112,"business_areas_id":150,"detailed_address":"北京市北京市通州区九棵树146号","collection_num":0,"is_authentication":1,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":2147483647,"create_time":1661926156,"update_time":1662010057,"delete_time":0,"juli":29.112695013832,"industry_name":"美食","shop_package":[{"id":32,"shop_id":37593,"shop_package_id":32,"create_time":1662003001,"update_time":1662003171,"user_id":1862,"name":"我的团品榛子","money":"100.00","talent_commission_money":"0.00","user_commission_money":"5.00","title_image":"1662000166150GBzzc.jpg","content":"{\"startTxt\":\"东北大榛子\",\"richTxt\":[]}","remind":"榛子大王","sales_volume":0,"stock_num":1000,"num":1000,"is_specified_time":0,"effective_time":432000,"package_title":"[{\"name\":\"东北大榛\",\"conList\":[{\"name\":\"20一斤\",\"price\":\"20\"}]}]","online_time":1662003000,"offline_time":0,"limit_time":"0","is_holidays":1,"is_rest":1,"personal_num":0,"is_upper_frame":1,"is_appointment":1,"use_num":0,"is_discount_share":1,"is_ban":0,"delete_time":0}]},{"id":37592,"user_id":1788,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1661570570337i46dc.jpg","name":"文刀刘","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"北京北京市朝阳区","longitude":"116.50958342858","dimension":"39.921633824912","province_id":110000,"city_id":110100,"area_id":110105,"business_areas_id":49,"detailed_address":"北京市北京市朝阳区朝阳北路112-1号","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":2147483647,"create_time":1661577521,"update_time":1661924352,"delete_time":0,"juli":11.594382354664,"industry_name":"休闲娱乐","shop_package":[]},{"id":37591,"user_id":1843,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1660361378040xZHK2.JPG","name":"沉浸世界大空间VR","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"湖北省武汉市江岸区","longitude":"114.290107","dimension":"30.58243","province_id":420000,"city_id":420100,"area_id":420102,"business_areas_id":7623,"detailed_address":"湖北省武汉市江岸区江汉路118号(地铁站E口步行320米)","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1660362396,"update_time":1660362396,"delete_time":0,"juli":1064.2667356952,"industry_name":"休闲娱乐","shop_package":[]},{"id":37590,"user_id":28,"industry_id":1,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1657416075767EeKsd.jpg","name":"金刚一号店","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"广东省广州市番禺区","longitude":"113.38484406215","dimension":"22.939628978972","province_id":440000,"city_id":440100,"area_id":440113,"business_areas_id":8524,"detailed_address":"广东省广州市番禺区市桥街道平康路平康公园","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1657416662,"update_time":1657416662,"delete_time":0,"juli":1917.4368592792,"industry_name":"美食","shop_package":[]},{"id":37589,"user_id":7,"industry_id":2,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1651897176425K77FW.PNG","name":"颜脂者美容","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"湖北省武汉市洪山区","longitude":"114.398573","dimension":"30.497436","province_id":420000,"city_id":420100,"area_id":420111,"business_areas_id":7672,"detailed_address":"湖北省武汉市洪山区雄楚大道865号洪福添美广场写字楼","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1652716289,"update_time":1652716289,"delete_time":0,"juli":1070.9079645058,"industry_name":"丽人","shop_package":[]},{"id":37588,"user_id":1727,"industry_id":2,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1649666616015eZQsK.JPG","name":"宜客足道（中御广场店）","week":"1,2,3,4,5,6,7","day_start":"00:00-23:59","day_end":"00:00-00:16","mobile":"027863339999","address":"湖北省武汉市硚口区","longitude":"114.253955","dimension":"30.577186","province_id":420000,"city_id":420100,"area_id":420104,"business_areas_id":7638,"detailed_address":"湖北省武汉市硚口区解放大道586号中御公馆四层(蓝天宾馆对面,中百仓储旁)","collection_num":0,"is_authentication":1,"is_opening":1,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1649683770,"update_time":1664360173,"delete_time":0,"juli":1065.7306054056,"industry_name":"丽人","shop_package":[]},{"id":37585,"user_id":1269,"industry_id":2,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1649639605549FfcbT.PNG","name":"郑州美诗沁","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"河南省郑州市金水区","longitude":"113.69227","dimension":"34.768709","province_id":410000,"city_id":410100,"area_id":410105,"business_areas_id":6952,"detailed_address":"河南省郑州市金水区经三路与纬二路交叉口北100米路西","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1649641385,"update_time":1649641385,"delete_time":0,"juli":647.0873204015,"industry_name":"丽人","shop_package":[]},{"id":37584,"user_id":7,"industry_id":1,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/1649490418525cFYGw.jpg","name":"京前北京烤鸭","week":null,"day_start":null,"day_end":null,"mobile":null,"address":"湖北省武汉市武昌区","longitude":"114.349167","dimension":"30.584149","province_id":420000,"city_id":420100,"area_id":420106,"business_areas_id":7659,"detailed_address":"湖北省武汉市武昌区徐家棚团结村群星城EL4-01商铺","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1649491064,"update_time":1649491064,"delete_time":0,"juli":1062.6479633209,"industry_name":"美食","shop_package":[]},{"id":37583,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"水晶树温泉SPA(朝阳店)","week":null,"day_start":null,"day_end":null,"mobile":"010-85788866","address":"广东省深圳市龙华区","longitude":"113.875962","dimension":"22.81501671","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"朝阳路69号楼12号","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1922.334478465,"industry_name":"休闲娱乐","shop_package":[]},{"id":37582,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"牧马人奶茶馆(乌兰察布总店)","week":null,"day_start":null,"day_end":null,"mobile":"0474-8301666","address":"广东省深圳市龙华区","longitude":"113.848067","dimension":"22.80842402","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"幸福路36号幸福广场东门","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1923.5157748949,"industry_name":"休闲娱乐","shop_package":[]},{"id":37581,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"华夏良子(长沙侯家塘店)","week":null,"day_start":null,"day_end":null,"mobile":"0731-89817766","address":"广东省深圳市龙华区","longitude":"113.8692016","dimension":"22.80339737","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"芙蓉中路212号新世纪花苑裙楼(国美电器旁)","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1923.7226536583,"industry_name":"休闲娱乐","shop_package":[]},{"id":37580,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"大桶水足浴(旗舰店)","week":null,"day_start":null,"day_end":null,"mobile":"0592-2030000","address":"广东省深圳市龙华区","longitude":"113.9492988","dimension":"22.80323687","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"体育路88号6楼","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1922.4548419709,"industry_name":"休闲娱乐","shop_package":[]},{"id":37579,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"千悦休闲浴场","week":null,"day_start":null,"day_end":null,"mobile":"0351-8821777","address":"广东省深圳市龙华区","longitude":"113.9492988","dimension":"22.80323687","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"南中环街与体育路交叉口东北角","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1922.4548419709,"industry_name":"休闲娱乐","shop_package":[]},{"id":37578,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"张老足底(沙井店)","week":null,"day_start":null,"day_end":null,"mobile":"0755-27256597","address":"广东省深圳市龙华区","longitude":"113.9081731","dimension":"22.79693158","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"沙井镇中心路与北环路交汇处椰子精品酒店3层","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1923.8035881784,"industry_name":"休闲娱乐","shop_package":[]},{"id":37577,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"领秀娱乐广场(农科路店)","week":null,"day_start":null,"day_end":null,"mobile":"0371-69066666","address":"广东省深圳市龙华区","longitude":"114.3297925","dimension":"22.79233489","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"花园路农科路","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1918.1053065789,"industry_name":"休闲娱乐","shop_package":[]},{"id":37576,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"大江东温泉汗蒸","week":null,"day_start":null,"day_end":null,"mobile":"0510-81862888","address":"广东省深圳市龙华区","longitude":"113.9170226","dimension":"22.79173883","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"中南西路88号商旅大厦(海景壹号旁)","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1924.2332066679,"industry_name":"休闲娱乐","shop_package":[]},{"id":37575,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"女王国际俱乐部","week":null,"day_start":null,"day_end":null,"mobile":"024-22729898","address":"广东省深圳市龙华区","longitude":"113.8992221","dimension":"22.79068504","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"同泽南街民主路58号(银信国际)","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1924.634764194,"industry_name":"休闲娱乐","shop_package":[]},{"id":37574,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"大高原足浴休闲会所(旗舰二店)","week":null,"day_start":null,"day_end":null,"mobile":"0931-8428800","address":"广东省深圳市龙华区","longitude":"113.9028877","dimension":"22.78856645","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"静宁路十字189号红楼商厦3楼","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1924.8088902202,"industry_name":"休闲娱乐","shop_package":[]},{"id":37573,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"翠岭茶楼","week":null,"day_start":null,"day_end":null,"mobile":"0356-5230777","address":"广东省深圳市龙华区","longitude":"113.8982928","dimension":"22.78731764","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"建设南路明星小学对面","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.0202190394,"industry_name":"休闲娱乐","shop_package":[]},{"id":37572,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"Helens海伦司(湘潭建设路口店)","week":null,"day_start":null,"day_end":null,"mobile":"0731-55577405","address":"广东省深圳市龙华区","longitude":"113.8982928","dimension":"22.78731764","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"建设南路百花女人街3楼海伦司小酒馆","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.0202190394,"industry_name":"休闲娱乐","shop_package":[]},{"id":37571,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"兰心大戏院(装修中)","week":null,"day_start":null,"day_end":null,"mobile":"021-62178530","address":"广东省深圳市龙华区","longitude":"113.8860529","dimension":"22.7866111","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"茂名南路57号(近长乐路)","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.2955188015,"industry_name":"休闲娱乐","shop_package":[]},{"id":37570,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"趣园茶社","week":null,"day_start":null,"day_end":null,"mobile":"0514-87291777","address":"广东省深圳市龙华区","longitude":"113.8996684","dimension":"22.7840502","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"长春路1号","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.3575712085,"industry_name":"休闲娱乐","shop_package":[]},{"id":37569,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"象山剧院","week":null,"day_start":null,"day_end":null,"mobile":"0574-65653221","address":"广东省深圳市龙华区","longitude":"114.320995","dimension":"22.78130258","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"建设路122号","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1919.4410160572,"industry_name":"休闲娱乐","shop_package":[]},{"id":37568,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"汤悦四季温泉馆","week":null,"day_start":null,"day_end":null,"mobile":"0558-7399999","address":"广东省深圳市龙华区","longitude":"113.9174813","dimension":"22.78105167","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"乐行路巨人印象东门1号楼栋","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.4018935945,"industry_name":"休闲娱乐","shop_package":[]},{"id":37567,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"华夏良子(北京华彩店)","week":null,"day_start":null,"day_end":null,"mobile":"010-59782917","address":"广东省深圳市龙华区","longitude":"113.8945271","dimension":"22.78019565","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"广顺北大街16号望京华彩商业中心3层","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1925.8644633214,"industry_name":"休闲娱乐","shop_package":[]},{"id":37566,"user_id":1493,"industry_id":4,"image_url":"https://ruomian.oss-cn-chengdu.aliyuncs.com/tsuymemfebcol3vk.png","name":"普拉那啤酒坊(武汉街店)","week":null,"day_start":null,"day_end":null,"mobile":"0411-82598888","address":"广东省深圳市龙华区","longitude":"113.848275","dimension":"22.77557218","province_id":440000,"city_id":440300,"area_id":440312,"business_areas_id":13024,"detailed_address":"解放路92号大连凯宾斯基饭店B1层","collection_num":0,"is_authentication":0,"is_opening":0,"sales_volume_sum":0,"is_ban":0,"ban_time":null,"create_time":1648867498,"update_time":1648867498,"delete_time":0,"juli":1927.1252591267,"industry_name":"休闲娱乐","shop_package":[]}]}-->




						</view>
					</view>
					<!-- <view class="ItemBottom">
						<view class="couponBox" v-for="(item,index) in 3">
							<view class="couponIcon">惠</view>
							<view class="couponPrice">23.8元</view>
							<view class="coupontext">三件套单人套餐</view>
						</view>
					</view> -->
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				NavItem:[{name:"收藏"},{name:"最近浏览"}],
				current:0,
				keyword:"",
				page:1,
				list:[],
				moreFlag:false,
				id:""
			}
		},
		onLoad(options) {
			
			this.getList();
		},
		onReachBottom() {
			if(!this.moreFlag){
				return false;
			}
			this.moreFlag = false;
			this.page = this.page + 1;
			this.getList();
		},
		methods: {
			selectStore(e){
				let index = e.target.dataset.index || e.currentTarget.dataset.index;
				let page = getCurrentPages();
				page[page.length-2].$vm.storeData = this.list[index];
				uni.navigateBack({
					delta:1
				})
			},
			getImage(url){
				if(url&&(url.indexOf("http://")!=-1||url.indexOf("https://")!=-1)){
					return url;
				}else{
					return app.$vm.globalData.imgBaseUrl + url;
				}
			},
			getList(){
				let obj = {};
				// obj.page = this.page;
				if(this.keyword.trim()){
					obj.search = this.keyword;
				}
				obj.page = this.page;
				obj.lng = uni.getStorageSync("longitude");//117.082094;
				obj.lat = uni.getStorageSync("latitude");//39.987725;
				this.$u.api.shopList(obj).then(res=>{
          console.log(res)
					if(this.page == 1){
						this.list = res.data.map(cur=>{
							cur.distance = app.$vm.getDistance(Number(cur.dimension),Number(cur.longitude));
							return cur;
						});
					}else{
						this.list = this.list.concat(res.data.map(cur=>{
							cur.distance = app.$vm.getDistance(Number(cur.dimension),Number(cur.longitude));
							return cur;
						}));
					}
					if(res.data.last_page>this.page){
						this.moreFlag = true;
					}else{
						this.moreFlag = false;
					}
				})
			},
			//搜索
			searchBtn(){
				// alert(this.keyword)
				this.getList();
			},
			selectItem(index){
				this.current = index
			}
		}
	}
</script>

<style scoped lang="less">
	.status_bar {
		height: var(--status-bar-height);
		width: 100%;
	}
.Select-merchant{
	background-color: #F3F3F3;
	min-height: 100vh;
	// overflow: auto;
	
	.merchantBox{
		padding-top: 128upx;
		.merchant_top{
			position: fixed;
			top: 0;
			width: 750upx;
			height: 128upx;
			padding: 32upx 24upx;
			background-color: #fff;
			z-index: 9999;
			box-sizing: border-box;
			.searchBox{
				// margin-bottom: 24upx;
			}
			.Navigation{
				display: flex;
				align-items: center;
				justify-content: space-between;
				padding: 0 203upx;
				.NavigationItem{
					font-size: 28upx;
					font-family: Source Han Sans CN;
					font-weight: 400;
					color: #333333;
					padding: 8upx 0;
					
				}
				.currentColor{
					color: #FFAC3F;
					border-bottom: 5upx solid #FFAC3F;
				}
			}
		}
		.merchantList{
			padding: 16upx 24upx;
			.ProductItem{
				width: 702upx;
				background: #FFFFFF;
				opacity: 1;
				border-radius: 20upx;
				padding: 24upx;
				margin-bottom: 16upx;
				.ItemTop{
					display: flex;
					// border-bottom: 2upx solid #F5F5F5;
					// padding-bottom: 16upx;
					.ProductImage{
						width: 144upx;
						height: 144upx;
						border-radius: 8upx;
						// background-color: #FFAC3F;
						margin-right: 24upx;
						background-position: center;
						background-size: cover;
						image{
							width: 100%;
							height: 100%;
							border-radius: 8upx;
						}
					}
					.ProductInfo{
						width: calc(100% - 168upx);
						.ProductNameBox{
							display: flex;
							align-items: center;
							justify-content: space-between;
							.ProductName{
								font-size: 24upx;
								font-family: Source Han Sans CN;
								font-weight: bold;
								color: #333333;
							}
							.sales-volume{
								font-size: 16upx;
								font-family: Source Han Sans CN;
								font-weight: 400;
								color: #FF8255;
							}
						}
						.addressBox{
							display: flex;
							justify-content: space-between;
							align-items: center;
							margin-top: 16upx;
							.address{
								font-size: 16upx;
								font-family: Source Han Sans CN;
								font-weight: 400;
								color: #999999;
							}
							.addressNum{
								font-size: 16upx;
								font-family: Source Han Sans CN;
								font-weight: 400;
								color: #999999;
							}
						}
						.ranking{
							width: auto;
							// width: 130upx;
							// height: 28upx;
							background: #FFF3C8;
							opacity: 1;
							border-radius: 8upx;
							padding: 8upx;
							font-size: 12upx;
							font-family: Source Han Sans CN;
							font-weight: 400;
							color: #683B00;
							margin-top: 12upx;
							display: inline-block;
						}
						.evaluateBox{
							display: flex;
							align-items: center;
							flex-wrap: wrap;
							margin-top: 16upx;
							.evaluateItem{
								// width: 100px;
								// height: 20px;
								background: #FFF5EA;
								opacity: 1;
								border-radius: 8upx;
								padding:4upx 8upx;
								font-size: 12upx;
								font-family: Source Han Sans CN;
								font-weight: 400;
								color: #FFAC3F;
								margin-right: 16upx;
								margin-bottom: 16upx;
							}
						}
					}
				}
				.ItemBottom{
					display: flex;
					flex-wrap: wrap;
					align-items: center;
					padding-top: 16upx;
					.couponBox{
						display: flex;
						align-items: center;
						margin-right: 64upx;
						margin-bottom: 24upx;
						.couponIcon{
							width: 28upx;
							height: 28upx;
							background: #FFAC3F;
							opacity: 1;
							border-radius: 8upx;
							text-align: center;
							line-height: 28upx;
							font-size: 16upx;
							font-family: Source Han Sans CN;
							font-weight: 400;
							color: #FFFFFF;
						}
						.couponPrice{
							font-size: 16upx;
							font-family: Source Han Sans CN;
							font-weight: 500;
							color: #FFAC3F;
							margin-left: 8upx;
						}
						.coupontext{
							font-size: 16upx;
							font-family: Source Han Sans CN;
							font-weight: 400;
							color: #333333;
							margin-left: 8upx;
						}
					}
					.couponBox:nth-child(2n+2){
						margin-right: 0;
					}
				}
			}
		}
	}
}
</style>
